﻿using System.Configuration;

namespace Altairis.MailToolkit.Configuration {

    public class EncodingElement : ConfigurationElement {

        /// <summary>
        /// Gets or sets the subject encoding.
        /// </summary>
        /// <value>The subject encoding.</value>
        [ConfigurationProperty("subject", IsRequired = false, DefaultValue = "UTF-8")]
        public string Subject {
            get { return (string)this["subject"]; }
            set { this["subject"] = value; }
        }

        /// <summary>
        /// Gets or sets the body encoding.
        /// </summary>
        /// <value>The body encoding.</value>
        [ConfigurationProperty("body", IsRequired = false, DefaultValue = "UTF-8")]
        public string Body {
            get { return (string)this["body"]; }
            set { this["body"] = value; }
        }
    }
}